package com.rd.student.jiaji.class4.suyan.zrrd.day19;

import java.util.Scanner;

public class FlowerTest {
    public static void main(String[] args) {
        int n;
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入金字塔层数");
        n=scanner.nextInt();
        for (int i=1;i<=n;i++){
            for (int j=1;j<=n-i;j++){
                System.out.printf(" ");
            }
            for (int k=1;k<=i*2-1;k++){
                System.out.print("*");
            }
            System.out.println("");
        }

    }
}
